<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>初始化一条语句并返回一个用于mysqli_stmt_prepare(调用)的对象</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.stat.html">mysqli::stat</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.store-result.html">mysqli::store_result</a></div>
 <div class="up"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqli.stmt-init" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::stmt_init</h1>
  <h1 class="refname">mysqli_stmt_init</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli::stmt_init</span> -- <span class="refname">mysqli_stmt_init</span> &mdash; <span class="dc-title">初始化一条语句并返回一个用于mysqli_stmt_prepare(调用)的对象</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.stmt-init-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="class.mysqli-stmt.html" class="type mysqli_stmt">mysqli_stmt</a></span> <span class="methodname"><strong>mysqli::stmt_init</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="class.mysqli-stmt.html" class="type mysqli_stmt">mysqli_stmt</a></span> <span class="methodname"><strong>mysqli_stmt_init</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>

  <p class="para rdfs-comment">
   分配并初始化一个语句对象用于<span class="function"><a href="mysqli-stmt.prepare.html" class="function">mysqli_stmt_prepare()</a></span>.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
   任何其后调用的mysqli_stmt函数都会失败直到<span class="function"><a href="mysqli-stmt.prepare.html" class="function">mysqli_stmt_prepare()</a></span>被调用.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.stmt-init-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    <dt>
<em><code class="parameter">
link</code></em></dt>
<dd>
<p class="para">仅以过程化样式：由<span class="function"><a href="function.mysqli-connect.html" class="function">mysqli_connect()</a></span> 或 <span class="function"><a href="mysqli.init.html" class="function">mysqli_init()</a></span>
返回的链接标识。</p></dd>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.stmt-init-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an object.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.stmt-init-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="mysqli-stmt.prepare.html" class="function" rel="rdfs-seeAlso">mysqli_stmt_prepare()</a> - Prepare an SQL statement for execution</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.stat.html">mysqli::stat</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.store-result.html">mysqli::store_result</a></div>
 <div class="up"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
